<%@ Assembly Name="TSB.FarmPowerShellWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d4ebb3809437dc11" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="TSB" TagName="PSWMenu" src="~/_controltemplates/TSB.FarmPowerShellWizard/PSWMenu.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PSW-ServiceApps.aspx.cs" Inherits="TSB.FarmPowerShellWizard.Layouts.TSB.FarmPowerShellWizard.PSW_ServiceApps" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<link rel="stylesheet" type="text/css" href="/_layouts/TSB.FarmPowerShellWizard/screen.css"/>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<TSB:PSWMenu ID="pswmenu" runat="server" />

<h2>Service Applications</h2>
<p>Please select a Service Application to generate the scripts for - at this time not all application types can be scripted.</p>
<asp:Repeater ID="rptServiceApps" runat="server">
    <HeaderTemplate>
        <table class="tb">
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <th><asp:Literal ID="ltName" runat="server" /></th>
            <td><asp:Literal ID="ltTypeName" runat="server" /></td>
            <td class="action"><asp:Button id="btnGo" runat="server" Text="Go" /><asp:HyperLink ID="lnk" runat="server" /></td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater>


<asp:PlaceHolder ID="phScriptContainer" runat="server" Visible="false">
<h2>Your script</h2>
<asp:TextBox id="txtPowerShell" runat="server" TextMode="MultiLine" CssClass="pswScriptView" />
</asp:PlaceHolder>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Service Applications
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Service Applications
</asp:Content>
